#!/usr/bin/env python
# encoding: utf-8
"""
models.py

Created by Mike Thorpe on 2009-07-25.
Copyright (c) 2009 Mike Thorpe. All rights reserved.
"""
from google.appengine.ext import db

class Settings(db.Model):
  """
  Data model for Alert objects.
  These objects are used to generate alert emails. 
  """ 
  user = db.UserProperty()
  email = db.StringProperty()
  commonTerms = db.StringListProperty( default=['% Off','Sale','Weekend Deal'] )
  includedTerms = db.StringListProperty()
  excludedTerms = db.StringListProperty()
  updated = db.DateTimeProperty(auto_now_add=True)
  
  
class FeedItem(db.Model):
  """
  Items found on the RSS Feed
  """
  title = db.StringProperty()
  pubDate = db.StringProperty()
  link = db.StringProperty()
  feed = db.StringProperty()